Skip to content

Conversation

@llastflowers
Copy link
Contributor

Closes #6789

Current sx usage: 0

✅ Don't need to separately update github-ui components to use @primer/styled-react

Changelog

Removed

Remove support for sx from the FilteredActionList component, and any associated stories, docs, and tests

Rollout strategy

  • Major release; if selected, include a written rollout or migration plan

This component currently has 0 sx usage in dotcom, and therefore does not need the @primer/styled-react wrapper. this will be confirmed again before merging.

Merge checklist

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: b8fad14

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@primer/react Major
@primer/styled-react Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Sep 18, 2025
@github-actions
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

Updated FilteredActionList and FilteredActionListLoaders components to remove sx support.
@github-actions github-actions bot requested a deployment to storybook-preview-6876 September 18, 2025 18:06 Abandoned
@primer-integration
Copy link

👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/2844

@primer-integration
Copy link

🟢 ci completed with status success.

@github-actions github-actions bot added integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh and removed integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Sep 18, 2025
@llastflowers llastflowers marked this pull request as ready for review September 18, 2025 18:32
@llastflowers llastflowers requested a review from a team as a code owner September 18, 2025 18:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes support for the sx prop from the FilteredActionList component as part of the migration away from styled-components. Since there is no current usage of sx on this component in dotcom, this change is safe to implement as a breaking change.

Key changes:

  • Replace Box components with plain div elements and corresponding CSS classes
  • Remove sx prop from component interface and implementation
  • Add CSS classes to maintain equivalent styling functionality

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
FilteredActionList.tsx Remove sx prop from interface, replace BoxWithFallback with div, update ActionList styling
FilteredActionList.module.css Add ActionList CSS class with flex-grow styling
FilteredActionListLoaders.tsx Replace Box components with div elements and CSS classes
FilteredActionListLoaders.module.css Add LoadingSpinner and LoadingSkeletonContainer CSS classes
.changeset/mighty-lizards-lick.md Add changeset entry for major version bump

@llastflowers llastflowers self-assigned this Sep 18, 2025
Copy link
Contributor

@liuliu-dev liuliu-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🎉

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we be removing below as well?

const StyledHeader = styled.div`
  box-shadow: 0 1px 0 ${get('colors.border.default')};
  z-index: 1;
`

@llastflowers llastflowers added this pull request to the merge queue Sep 22, 2025
Merged via the queue into main with commit 2102252 Sep 22, 2025
43 checks passed
@llastflowers llastflowers deleted the llastflowers/6789/no-sx-FilteredActionList branch September 22, 2025 17:29
@primer primer bot mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove support for sx from the FilteredActionList component in @primer/react/experimental

5 participants